//
//  SignatureModel.swift
//  ezyform
//
//  Created by Moennig Q on 7/5/2022.
//  Copyright © 2022 Client.Solution Pty Ltd. All rights reserved.
//

import Foundation
struct SignatureInfoModel{
    var pvd_id: String?
    //
    var installer_signature_latitude: String = ""
    var installer_signature_longitude: String = ""
    var installer_statement_design_type: String? //"not modified", "modified"
    var installer_statement_duty_type: String? //"install", "supervise"
    //installer签订协议时的自拍照
    var installer_agree_selfie: NSData?
    //installer提交签名时的自拍照
    var installer_signature_selfie: NSData?
    //owner签名时的勾选："undertaken the installation themselves", "supervised the installation by others"
    var physically_attended: String?
    var owner_signature_selfie: NSData?
    //认证号
    var accreditation_number: String?
    //如果是aho公司的就是用老协议，版本号是1，其他公司是新协议，版本号是2; 2022-04-01（is_new_stc_form = true时）后aho版本号是3，其他公司是4
    var owner_mandatory_declaration_version: String?
    //Owner签名时，针对Aus Solar Co公司的满意度form，
    var owner_aussolarco_satisfactory_version: String?
    var owner_satisfaction_completion_version: String?
    //onwer签新协议时用到："Discount", "Credit memo", "Cash payment"
    var owner_financial_incentive: String?
    //存放签名时，所有必填字段的信息
    var statement_input_param_all: String?
    //四个签名图片
    var installer_sign_imagedata: NSData?
    var designer_sign_imagedata: NSData?
    var owner_sign_imagedata: NSData?
    var witness_sign_imagedata: NSData?
    //四个签名时间
    var installer_signed_at: String?
    var designer_signed_at: String?
    var owner_signed_at: String?
    var witness_signed_at: String?
    //print_name
    var witness_signed_name: String?
    var owner_signed_name: String?
    //installer的witness
    var installer_witness_signed_signature: NSData?
    var installer_witness_signed_date: String?
    var installer_witness_signed_name: String?
    //designer的witness
    var designer_witness_signed_signature: NSData?
    var designer_witness_signed_date: String?
    var designer_witness_signed_name: String?
    //*********以下是在线协议需要的几个参数
    //协议中需要赋值的参数，其实是整个PVD detail
    var onlineStatementPVDDetail: [String: Any] = [:]
    //交互参数，输入参数
    var onlineStatementParams: [String: Any] = [:]
    //协议中需要交互的参数，例如：单选项勾选
    //如果有自拍，这里存放自拍的Data
    var onlineStatementPhotoParams: [String: Any] = [:]
}
